<!-- header -->
<view class="mine">
        <view class="floating-layer" wx:if='{{isLogin}}' > 
                <view class="layer-box">
             <label  class="tip1">您还未登录</label>
             <label  class="tip2">请先登录在进行操作</label>
             <view class="btn-box ">
                             <button class="load_style1"   bindtap="loginNo">暂不登录</button>
                             <button class="load_style1" bindtap="loginMen">立即登录</button>
             </view>
            
                </view>
            </view>
    <import src="../detail/detail" />
    <template is="{{template}}" data="{{my_toast_tip: my_toast_tip}}" />

    <template is="{{my_pop}}" data="{{...popData}}" />

    <view class="header-wrapper">
        <view class="header-box">
            <view class="header clearfix">
                <view class="left">
                    <image wx:if="{{avatarUrl}}" src="{{avatarUrl}}"></image>
                    <image wx:else src="{{imageUrl}}/default_avatar.png"></image>
                </view>
                <view class="center">
                    <button wx-if="{{btnShow}}" class="log-btn" bindtap="loginUrl" hover-class="none">
                    请先登录</button>
                    <text class="name">{{nickName}}</text>
                    <!-- <<button class="long">{{nickName}}</<button> -->
                    <view class="clearfix">
                        <text class="number">{{mobile}}</text>
                        <image class="level" src="{{imageUrl}}/level_{{level}}.png"></image>
                    </view>
                </view>
                <view class="right">
                    <navigator url="/pages/paymentCode/paymentCode" hover-class="none">
                        <image src="{{imageUrl}}/me_icon_tiaoma.png"></image>
                        <text>付款码</text>
                    </navigator>
                </view>
            </view>
        </view>

        <navigator id="mx_entrance" url='{{mxUrlStr}}' hover-class="none">
            <label>
                <!-- <image class='mlogo_style' src="{{imageUrl}}/mx_mine_logo.png"></image> -->
                <image class='mlogo_style' src="{{imageUrl}}/me_icon_vip.png"></image>
                <span>{{maixaingMsg}}</span>
                <image wx:if='{{maixiangShow}}' class='mnext_style' src="{{imageUrl}}/me_icon_next.png"></image>
                <!--  <image  class='mnext_style' src="{{imageUrl}}/me_icon_next.png"></image> -->
            </label>
        </navigator>
    </view>
    <!-- orderSelect -->
    <view class="orderStatus clearfix">
        <navigator bindtap='gotowaitpay' url="/pages/orders/orders?current=1" hover-class="none">
            <label class="first">
                <image src="{{imageUrl}}/icon_tobePaid-v3.png">
                     <text class="circle" wx:if='{{waitpaynum>0}}'>{{waitpaynum}}</text>
                </image>
                <view>待付款</view>
            </label>
            <!-- <image src="{{imageUrl}}/icon_tobePaid-v2.png"></image> -->
        </navigator>
        <navigator url="/pages/orders/orders?current=2" hover-class="none">
            <!-- <image src="{{imageUrl}}/icon_endPaid-v2.png"></image> -->
            <label>
                <image src="{{imageUrl}}/me_icon_order2.png"></image>
                <view>已完成</view>
            </label>
        </navigator>
        <navigator url="/pages/orders/orders?current=0" hover-class="none">
            <!-- <image src="{{imageUrl}}/icon_allPaid-v2.png"></image> -->
            <label class="whole">
                <image src="{{imageUrl}}/me_icon_order3.png"></image>
                <view>全部</view>
            </label>
        </navigator>
    </view>


    <!-- list -->
    <view class="settingList">
        <navigator class="clearfix balance" hover-class="none" url='{{payUrl}}'>
            <view class="balance-left">
                <image src="{{imageUrl}}/me_icon_yue.png"></image>
            </view>
            <view class="balance-center">
                <view>账户余额(元)</view>
                <view class="balance-price"> {{util.formatNum(balance)}}</view>
            </view>
            <view class="balance-right">
                <text>充值</text>
                <image class="icon" src='{{imageUrl}}/icon_next.png'></image>
            </view>
        </navigator>
        <navigator class="item" hover-class="none" url='/pages/balanceDetail/balanceDetail'>
            <view>
                <image src='{{imageUrl}}/my_balance.png'></image>
                <text>余额明细</text>
            </view>
            <image class="icon" src='{{imageUrl}}/icon_next.png'></image>
        </navigator>
       <!--  <navigator url='/pages/face/face' class="item" hover-class="none">
            <view>
                <image src='{{imageUrl}}/my_face.png'></image>
                <text>人脸开门</text>
            </view>
            <image class="icon" src='{{imageUrl}}/icon_next.png'></image>
        </navigator> -->
        <navigator url='/pages/coupons/coupons' class="item" hover-class="none">
            <view>
                <image src='{{imageUrl}}/my_coupuncenter.png'></image>
                <text>领券中心</text>
                <!-- <span wx:if="{{couponsNum}}" style="margin-left: 10rpx;color:white;background: red;height: 30rpx;width: 30rpx;border-radius: 15rpx;font-size: 15rpx;line-height: 30rpx;text-align: center;display: inline-block;">{{couponsNum}}</span> -->
                <span wx:if="{{couponsNum}}" style="margin-left: 10rpx;color:white;background: red;height: 40rpx;width: 40rpx;border-radius: 20rpx;font-size: 20rpx;line-height: 40rpx;text-align: center;display: inline-block;">{{couponsNum}}</span>
            </view>
            <image class="icon" src='{{imageUrl}}/icon_next.png'></image>
        </navigator>
        <navigator url='/pages/myCoupons/myCoupons' class="item" hover-class="none">
            <view>
                <image src='{{imageUrl}}/my_coupons.png'></image>
                <text>我的优惠券</text>
            </view>
            <image class="icon" src='{{imageUrl}}/icon_next.png'></image>
        </navigator>



        <navigator url='/pages/freePayment/freePayment' class="item" hover-class="none">
            <view>
                <image src='{{imageUrl}}/my_freepay.png'></image>
                <text>免密支付</text>
            </view>
            <image class="icon" src='{{imageUrl}}/icon_next.png'></image>
        </navigator>

        <navigator url='{{urlStr}}' class="item" hover-class="none">
            <view>
                <!-- <image src='{{imageUrl}}/balance.png'></image> -->
                <image src='{{imageUrl}}/balance.png'></image>
                <text>余额密码设置</text>
            </view>
            <image class="icon" src='{{imageUrl}}/icon_next.png'></image>

        </navigator>
        <navigator wx:if='{{memId==2472||memId==6||memId==1||memId==71040||memId==24}}' url='/pages/investigation/investigation'
            class="item" hover-class="none">
            <!-- <navigator  url='/pages/investigation/investigation'  class="item" hover-class="none"> -->
            <view>
                <!-- <image src='{{imageUrl}}/balance.png'></image> -->
                <image src='{{imageUrl}}/inv.png'></image>
                <text>专属问券调查入口</text>
            </view>
            <image class="icon" src='{{imageUrl}}/icon_next.png'></image>

        </navigator>
        <!-- <button open-type='contact' >客服</button> -->
        <!-- <official-account></official-account> -->
        <!-- <navigator url='{{urlStr}}'  class="item" hover-class="none"> -->
        <view>
            <!-- <image src='{{imageUrl}}/balance.png'></image> -->
            <!-- <image src='{{imageUrl}}/balance.png'></image> -->
            <text class='textStyle'>- 当前版本3.41 -</text>
        </view>
        <!-- <image class="icon" src='{{imageUrl}}/icon_next.png'></image> -->

        <!-- </navigator> -->


    </view>
</view>
<!-- <view class="floating-layer" wx:if='{{isLogin}}'> -->

<wxs module="util">
    var formatNum=function(n){
    return Number(n)
    }
    var formatNumber =function(n){
    n = n.toString()
    return n[1] ? n : '0' + n
    }
    var formatDate=function(millisecond){
    var date=getDate(millisecond),
    year = date.getFullYear(),
    month = date.getMonth() + 1,
    day = date.getDate(),
    hour = date.getHours(),
    minute = date.getMinutes(),
    second = date.getSeconds();
    return [year, month, day].map(formatNumber).join('-') + ' '+' ' + [hour, minute].map(formatNumber).join(':')
    }
    module.exports = {
    formatNum : formatNum,
    formatDate:formatDate
    }
</wxs>